#define  _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

void Test1()
{
	Heap hp;
	int a[] = { 8,2,1,4,3,0,6,5,9,7,11 };
	HeapCreate(&hp, a, sizeof(a)/sizeof(int));
	while(!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestory(&hp);
}

int main()
{
	Test1();
	return 0;
}